package com.itheima.mapper.store;

import com.github.pagehelper.Page;
import com.itheima.domain.store.Question;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

/**
 * 部门操作 持久层接口
 */
public interface QuestionMapper {

    Page<Question> findAll();

    @Insert("insert into ss_question values(#{id},#{questionName},#{parentId},#{state})")
    void addQuestion(Question question);

    void deleteByIds(String[] idArr);

    Question findById(String id);

    void updateQuestion(Question question);

    void save(Question question);
}
